package com.cskaoyan.catmall.service;

import com.cskaoyan.catmall.model.bo.GoodsBo;
import com.cskaoyan.catmall.model.bo.GoodsDetailBo;
import com.cskaoyan.catmall.model.pojo.MarketGoods;
import com.cskaoyan.catmall.model.vo.CatAndBrandVo;
import com.cskaoyan.catmall.model.vo.GoodsDetailVo;
import com.cskaoyan.catmall.model.vo.GoodsVo;

public interface GoodsService {

    GoodsVo selectGoodsList(GoodsBo goodsBo);

    CatAndBrandVo selectCatAndBrand();

    GoodsDetailVo selectGoodsDetail(Integer id);

    void insertGoodsDetail(GoodsDetailBo goodsDetailBo);

    void deleteGoods(MarketGoods marketGoods);

    void updateGoods(GoodsDetailBo goodsDetailBo);

    int selectDuplicateGoods(String goodsSn, String name);

    int selectDuplicateGoodsByName(String name);
}
